.custom-dialog {
  $padding-x: 1.714286em;
  $padding-y: 1.142857em;
  $padding-y-s: 0.714286em;
  font-size: inherit;
  overflow: hidden;
  .ant-modal-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    .ant-modal-header {
      padding: $padding-y $padding-x;
    }
    .ant-modal-body {
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      width: 100%;
      height: auto;
      min-height: 400px;
      max-height: calc(100vh - 200px);
      padding: $padding-x;
      overflow: auto;
      &::-webkit-scrollbar {
        width: 4px;
        height: 4px;
      }
      &::-webkit-scrollbar-thumb {
        background: #999999;
      }
    }
    .ant-modal-footer {
      padding: $padding-y-s $padding-x;
    }
  }
  &.custom-dialog-no-title {
    .ant-modal-content {
      .ant-modal-header {
        height: 0;
        padding: 0;
        position: absolute;
      }
      .ant-modal-body {
        height: calc(100% - 3.785714em);
      }
    }
  }
  &.custom-dialog-no-footer {
    .ant-modal-footer {
      height: 0;
      padding: 0;
      position: absolute;
    }
    .ant-modal-body {
      height: calc(100% - 3.928571em);
    }
  }
  &.custom-dialog-only-body {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    .ant-modal-header {
      height: 0;
      padding: 0;
      position: absolute;
    }
    .ant-modal-body {
      min-height: unset;
      max-height: unset;
      height: 100%;
    }
    .ant-modal-footer {
      height: 0;
      padding: 0;
      position: absolute;
    }
  }
}
